#!/usr/bin/env bash
export CRF_PATH=/home/da/pattern_crf/
export RECOGNITION_PATH=/home/da/pattern_recognition/
# 训练最新的主诉属性标注文件，crf学习训练阶段（训练样本来自标注人员的标注数据new_train_$DATE）
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/new_train ${RECOGNITION_PATH}/crf/model_os
# 训练最新的CT影像属性标注文件，crf学习训练阶段（训练样本来自标注人员的标注数据new_train_$DATE）
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_imageology_info ${RECOGNITION_PATH}/ct_crf/model_ct
#bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/ct_crf/new_train_ct_bme ${RECOGNITION_PATH}/ct_crf/model_bme_$DATE
#${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/new_train_bme_$DATE ${RECOGNITION_PATH}/crf/model_bme_$DATE
# 训练最新的现病史属性标注文件
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_unclassified ${RECOGNITION_PATH}/xbs_crf/model_os_unclassified
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_family_history ${RECOGNITION_PATH}/xbs_crf/model_os_family_history
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_personal_history ${RECOGNITION_PATH}/xbs_crf/model_os_personal_history
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_small_past_history ${RECOGNITION_PATH}/xbs_crf/model_os_small_past_history
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_physical_check ${RECOGNITION_PATH}/xbs_crf/model_os_physical_check
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_imageology_info ${RECOGNITION_PATH}/xbs_crf/model_os_imageology_info
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_operation_his ${RECOGNITION_PATH}/xbs_crf/model_os_operation_his
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_doctor_advice_information ${RECOGNITION_PATH}/xbs_crf/model_os_doctor_advice_information
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_laboratory_examination ${RECOGNITION_PATH}/xbs_crf/model_os_laboratory_examination
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_auxiliary_examination ${RECOGNITION_PATH}/xbs_crf/model_os_auxiliary_examination
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template2dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_symptoms_described ${RECOGNITION_PATH}/xbs_crf/model_os_symptoms_described

bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_unclassified ${RECOGNITION_PATH}/xbs_crf/model_bme_unclassified
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_family_history ${RECOGNITION_PATH}/xbs_crf/model_bme_family_history
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_personal_history ${RECOGNITION_PATH}/xbs_crf/model_bme_personal_history
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_small_past_history ${RECOGNITION_PATH}/xbs_crf/model_bme_small_past_history
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_physical_check ${RECOGNITION_PATH}/xbs_crf/model_bme_physical_check
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_imageology_info ${RECOGNITION_PATH}/xbs_crf/model_bme_imageology_info
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_operation_his ${RECOGNITION_PATH}/xbs_crf/model_bme_operation_his
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_doctor_advice_information ${RECOGNITION_PATH}/xbs_crf/model_bme_doctor_advice_information
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_laboratory_examination ${RECOGNITION_PATH}/xbs_crf/model_bme_laboratory_examination
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_auxiliary_examination ${RECOGNITION_PATH}/xbs_crf/model_bme_auxiliary_examination
bash ${CRF_PATH}/CRF++-0.58/crf_learn ${RECOGNITION_PATH}/crf/template3dim_1 ${RECOGNITION_PATH}/crf/xbs_new_train_bme_symptoms_described ${RECOGNITION_PATH}/xbs_crf/model_bme_symptoms_described